package com.lyc.bean;

/**
 * 发消息的类
 */
public class Message {
    // {result:"", data:{}, status:0}

    private String result;// 消息内容
    private Object data;// 消息所携带的一组数据
    private int status;// 状态码 0表示成功，-1表示失败

    public Message() {
    }

    public Message(String result, int status) {
        this.result = result;
        this.status = status;
    }

    public Message(String result) {
        this.result = result;
    }

    public Message(int status) {
        this.status = status;
    }

    public Message(String result, Object data, int status) {
        this.result = result;
        this.data = data;
        this.status = status;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
